package exercises.Charpter10;

public class Ten {
	Face getFace( boolean switcher) {
		if (switcher){
			class myFace implements Face{
				public void func() {
					System.out.println("My face!");
				}
			}
			return new myFace();
		}else {
			return null;
		}
	}
}
